home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / amigem.lha / amigem / exec / resident.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-28  |  925 b   |  32 lines

  1. #include <exec/resident.h>
  2. #include <clib/_exec.h>
  3.  
  4. #include <amigem/fd_lib.h>
  5. #define LIBBASE struct ExecBase *SysBase
  6.  
  7. FD2(12,void,InitCode,ULONG startClass,D0,ULONG version,D1)
  8. {}
  9.  
  10. FD1(16,struct Resident *,FindResident,STRPTR name,A1)
  11. { return NULL; }
  12.  
  13. FC3(0,APTR,InitFunc,A1,APTR dummy,D0,BPTR segList,A0,struct ExecBase *SysBase,A6)
  14. ;
  15.  
  16. FD2(17,APTR,InitResident,struct Resident *resident,A1,ULONG segList,d1)
  17. {
  18.   if(resident->rt_MatchWord!=RTC_MATCHWORD||resident!=resident->rt_MatchTag)
  19.     return NULL;
  20.   if(resident->rt_Flags&RTF_AUTOINIT)
  21.     return (APTR)MakeLibrary(((APTR *)resident->rt_Init)[1],
  22.                              ((struct InitStruct **)resident->rt_Init)[2],
  23.                              ((APTR *)resident->rt_Init)[3],
  24.                              ((ULONG *)resident->rt_Init)[0],segList);
  25.   else
  26.     return InitFunc(resident->rt_Init,0,segList,SysBase);
  27. }
  28.  
  29. FD0(102,ULONG,SumKickData)
  30. { return 0; }
  31.  
  32.